<%@page import="java.util.Enumeration"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pay@All Paynow</title>
</head>
<body>
	<center>
		<h3>List Parameter</h3>
		<%
		    Enumeration<String> attrNames = request.getParameterNames();
					while (attrNames.hasMoreElements()) {
						String name = attrNames.nextElement();
						out.println(name + " : " + request.getParameter(name) + "<br/>");
					}
		%>
	</center>
	<br />
	<input type="hidden" id="resp_url_cancel"
		value="<%=request.getParameter("resp_url_cancel")%>" />
	<input type="hidden" id="resp_url_back"
		value="<%=request.getParameter("resp_url_back")%>" />
	<form name="get_form" action="" method="GET">
		<input type="hidden" name="invoiceNo"
			value="<%=request.getParameter("inv")%>" />
		<table align="center">
			<tr>
				<td><input type="button" value="Cancel" onclick="cancel();" />
				</td>
				<td><input type="button" value="Back" onclick="back();" /></td>
				<td><input type="button" value="Confirm" onclick="confirm();" />
				</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript">
	function cancel(){
		document.get_form.action=document.getElementById("resp_url_cancel").value;
		document.get_form.submit();
	}
	function back(){
		document.get_form.action=document.getElementById("resp_url_back").value;
		document.get_form.submit();
	}
	function confirm(){
		document.get_form.action='<%=request.getContextPath()%>/simulate/payatall_confirm';
		document.get_form.submit();
	}
</script>
</html>
